package customer

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

type CusUserRouter struct{}

// InitCusUserRouter 初始化 cusUser表 路由信息
func (s *CusUserRouter) InitCusUserRouter(privateRouter *gin.RouterGroup, Router *gin.RouterGroup) {
	cusUserRouter := Router.Group("cusUser")
	fmt.Println("开始登录123567890")
	privateCusUserRouter := privateRouter.Group("cusUser")
	{
		cusUserRouter.POST("register", cusUserApi.Register)           // 新建cusUser表
		cusUserRouter.POST("login", cusUserApi.Login)                 // 删除cusUser表
		cusUserRouter.POST("resetPassword", cusUserApi.ResetPassword) // 重置密码

	}
	{
		privateCusUserRouter.POST("updateUserInfo", cusUserApi.UpdateUserInfo) // 更新个人信息
		privateCusUserRouter.GET("getUserInfo", cusUserApi.GetUserInfo)        // 更新个人信息
		privateCusUserRouter.POST("changePassword", cusUserApi.ChangePassword) // 更新个人信息
	}
}
